<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>


<script language="JavaScript" src="misc/jquery-1.6.2.min.js"></script>
</head>
<body> 

 
{template 'header.html'}


 
<div class="container"> 


		<div class="home-left">
        	
            
                <ul class="nav nav-pills nav-stacked">
                	<li class="active"><a href="{SITE_URL}"><i class="icon-home"></i>首页</a></li>
                      <li><a href="{url("?module=explore")}"><i class="icon-heart"></i>发现</a></li>
                      <li><a href="{url("?module=area")}"><i class="icon-map-marker"></i>同城</a></li>
                      <li><a href="{url("?module=tweet")}"><i class="icon-retweet"></i>动弹</a></li>
                      <li><a href="{url("?module=group")}"><i class="icon-comment"></i>小组</a></li>
                      <li><a href="{url("?module=blog")}"><i class="icon-calendar"></i>博客</a></li>
                      <li><a href="{url("?module=vote")}"><i class="icon-tasks"></i>投票</a></li>
                      <li><a href="{url("?module=wiki")}"><i class="icon-list-alt"></i>百科</a></li>  
                      <li><a href="{url("?module=ask")}"><i class="icon-question-sign"></i>问答</a></li>
                      <li><a href="{url("?module=guestbook")}"><i class="icon-book"></i>留言</a></li>
                      <li><a href="{url("?module=movie")}"><i class="icon-film"></i>电影</a></li>
                      <li><a href="{url("?module=search")}"><i class="icon-search"></i>搜索</a></li>
                      <li><a href="{url("?module=app")}"><i class="icon-qrcode"></i>安卓</a></li>
                      <li><a href="{url("?module=codex")}"><i class="icon-asterisk"></i>代码</a></li>
                      <li><a href="{url("?module=digg")}"><i class="icon-fire"></i>置顶</a></li>
                      <li><a href="{url("?module=soft")}"><i class="icon-download-alt"></i>软件</a></li>
                      <li><a href="{url("?module=classad")}"><i class="icon-list"></i>分类</a></li>
                      <li><a href="{url("?module=forum")}"><i class="icon-bold"></i>论坛</a></li>
                      <li><a href="{url("?module=video")}"><i class="icon-facetime-video"></i>视频</a></li>
                      <li><a href="{url("?module=music")}"><i class="icon-music"></i>歌曲</a></li>
                      <li><a href="{url("?module=photo")}"><i class="icon-picture"></i>相册</a></li>
                      <li><a href="{url("?module=goods")}"><i class="icon-shopping-cart"></i>购物</a></li>
                      <li><a href="{url("?module=taobao")}"><i class="icon-text-height"></i>淘宝</a></li>
                </ul>
    
    
    
        </div>
        <div class="home-main">
				
                
                <h3>{$_nickname},欢迎回来</h3>
                
                
                <div class="mod">
                	<div class="body">
                    	<form action="index.php?module=tweet&action=create" method="post" class="home-publish">
                        	<textarea name="info[description]" cols="" rows="" class="home-publish-textarea">你可以更新状态, 让好友们知道你在做什么...</textarea>
                            <input name="dosubmit" type="submit" class="button button-primary home-publish-submit" value="更新">
                        </form>
                    </div>
                </div>
                
                
             <div class="mod">
                
                <div id="feeds"></div> 
                  
            </div>
            
            
        </div>
        <div class="home-right">
        	
            	
                <div class="mod">
                  <div class="head"></div>
                  <div class="body">
                    
                    <ul class="nav nav-tabs nav-stacked">
                     <li {if $action==edit} class="active" {/if}><a href="{url("?module=space&userid=$_userid")}"><i class="icon-share"></i>访问博客<br/>{url("?module=space&userid=$_userid")}</a></li>
                    <li {if $action==visitor} class="active" {/if}><a href="{url("?module=member&action=visitor")}">今日来访</a></li>
                    <li {if $file==collect} class="active" {/if}><a href="?module=collect">我的收藏</a></li>
                  </ul>
                  
                  </div>
               </div>
               
               
               <div class="mod">
                    <div class="head">最新注册会员 (<a href="{url("?module=member&action=list")}">更多</a>)</div>
                    <ul class="body users">
                        {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid=10 AND disabled=0 ORDER BY userid DESC"}
                       {get sql="$sql" rows="12"}
                        <li>
                         <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" class="thumbnail" width="48" height="48"/></a>
                         <a href="{url("?module=space&userid=$r[userid]")}">{php echo $r[nickname] ? $r[nickname] : $r[username]}</a>
                        </li>
                      {/get}
                   </ul>
                </div>
               
               
               <div class="mod">
               		<div class="head">最近访客</div>
                    <ul class="body users">
             
                         {loop $visitors $n $r}
                        <li {if $n%4==0} class="clear" {/if}>
                         <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48"/></a>
                         <a href="{url("?module=space&userid=$r[userid]")}">{nickname($r[userid])}</a>
                         <small>{date('Y-m-d H:i:s',$r[addtime])}</small>
                       
                         <p>&nbsp;</p>
                        </li>
                      {/loop}
                  
                    </ul>  
               </div>
               
               
               <div class="mod">
               		<div class="head">我的足迹</div>
                    <div class="body users">
             
                         {loop $traces $n $r}
                        <li {if $n%4==0} class="clear" {/if}>
                         <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}" class="thumbnail"  target="_blank" width="48" height="48"/></a>
                         <a href="{url("?module=space&userid=$r[userid]")}">{nickname($r[userid])}</a>
                         <small>{date('Y-m-d H:i:s',$r[addtime])}</small>
                       
                         <p>&nbsp;</p>
                        </li>
                      {/loop}
                  
                    </div>  
               </div>
                  
                  
    
        </div>

 
     
</div>

{template 'footer.html'}